#define _CRT_SECURE_NO_WARNINGS 1
#include"stdio.h"
int main()
{
	int arr[10] = { 0 };
	for (int i = 0; i < 10; i++)
	{
		int c = scanf("%d", &arr[i]);
	}
	int max = arr[0];
	for (int i = 0; i < 10; i++)
	{
		if (arr[i] > max)
		{ 
			max = arr[i];
		}
			
	}
	printf("%d\n", max);
}